class User {
	//	Attributes
	String 	name
	String 	lastName
	String 	email
	String 	alias
    String  password
    String  country
    String  avatarPath
    boolean admin = false
    
    // TODO: Fecha de nacimiento
	boolean off

	Date dateCreated
	Date lastUpdated
	
	
	//	DB Relations & Constraits
	static constraints = {
		name(blank:false)
		lastName(blank:false)
		alias(blank:false, unique:true)
		email(blank:false,email:true)
        password(blank:false)
        avatarPath(nullable:true)  
	}
	
	
	//	Other Methods
	/*String toString(){
		"Mode: "+off+" Nom: "+name+" Cognoms: "+lastName+" alias: "+alias+" email: "+email
	}*/
}
